#定义Student类
class Student(object):
    count = 0
    #初始化函数__init__
    def __init__(self, name):
        self.name = name
        #类属性赋值
        Student.count=Student.count+1


s1=Student('zhangsan')
s2=Student('lisi')
s3=Student('wangwu')
s4=Student('zhaoliu')

print(Student.count)